@extends('layouts.app')
@include('package.sidebar')
@section('content')
    <div class="content">
        <div class="row custom-invoice">
            @can('package-gift')
                <a class="btn btn-success" href="{{ route("admin.package.gift.create", ['shop_id' => $shopId, 'category' => $category, 'id' => $id]) }}">添加</a>
            @endcan
            <br />
            <table class="table table-striped table-hover" width="1000">
                <thead>
                <tr>
                    <th>赠品包</th>
                    <th>包含赠品</th>
                    <th>操作</th>
                </tr>
                </thead>
                <tbody>

                @foreach($data as $item)
                    <tr>
                        <td>{{ $item->name }}</td>
                        <td>{!! $item->content !!}</td>
                        <td>
                            <a class="btn btn-danger btn-xs delete-confirm" data-href="{{ route('admin.package.gift.destroy', ['id' => $item->id]) }}"><i class="fa fa-trash-o"></i> 删除</a>
                        </td>
                @endforeach
                </tbody>
            </table>
        </div>
{{--    </div>--}}
@endsection
